const express = require('express');
var merchantController = require('../controller/merchant.controller');

module.exports = (app)=>{
    var router = express.Router();

    router.route('/:merchantid')
        .get(merchantController.findByMerchantId);

    router.route('/')
        .get(merchantController.findByIdList);



    app.use('/merchants',router);

    return router;
}